﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001155 RID: 4437
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetFriendRemarkNameCsReq : IMessage<SetFriendRemarkNameCsReq>, IMessage, IEquatable<SetFriendRemarkNameCsReq>, IDeepCloneable<SetFriendRemarkNameCsReq>, IBufferMessage
	{
		// Token: 0x17003828 RID: 14376
		// (get) Token: 0x0600C690 RID: 50832 RVA: 0x00217E6D File Offset: 0x0021606D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetFriendRemarkNameCsReq> Parser
		{
			get
			{
				return SetFriendRemarkNameCsReq._parser;
			}
		}

		// Token: 0x17003829 RID: 14377
		// (get) Token: 0x0600C691 RID: 50833 RVA: 0x00217E74 File Offset: 0x00216074
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetFriendRemarkNameCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700382A RID: 14378
		// (get) Token: 0x0600C692 RID: 50834 RVA: 0x00217E86 File Offset: 0x00216086
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetFriendRemarkNameCsReq.Descriptor;
			}
		}

		// Token: 0x0600C693 RID: 50835 RVA: 0x00217E8D File Offset: 0x0021608D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetFriendRemarkNameCsReq()
		{
		}

		// Token: 0x0600C694 RID: 50836 RVA: 0x00217EA0 File Offset: 0x002160A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetFriendRemarkNameCsReq(SetFriendRemarkNameCsReq other) : this()
		{
			this.reason_ = other.reason_;
			this.remarkName_ = other.remarkName_;
			this.uid_ = other.uid_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C695 RID: 50837 RVA: 0x00217EDD File Offset: 0x002160DD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetFriendRemarkNameCsReq Clone()
		{
			return new SetFriendRemarkNameCsReq(this);
		}

		// Token: 0x1700382B RID: 14379
		// (get) Token: 0x0600C696 RID: 50838 RVA: 0x00217EE5 File Offset: 0x002160E5
		// (set) Token: 0x0600C697 RID: 50839 RVA: 0x00217EED File Offset: 0x002160ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Reason
		{
			get
			{
				return this.reason_;
			}
			set
			{
				this.reason_ = value;
			}
		}

		// Token: 0x1700382C RID: 14380
		// (get) Token: 0x0600C698 RID: 50840 RVA: 0x00217EF6 File Offset: 0x002160F6
		// (set) Token: 0x0600C699 RID: 50841 RVA: 0x00217EFE File Offset: 0x002160FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string RemarkName
		{
			get
			{
				return this.remarkName_;
			}
			set
			{
				this.remarkName_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x1700382D RID: 14381
		// (get) Token: 0x0600C69A RID: 50842 RVA: 0x00217F11 File Offset: 0x00216111
		// (set) Token: 0x0600C69B RID: 50843 RVA: 0x00217F19 File Offset: 0x00216119
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Uid
		{
			get
			{
				return this.uid_;
			}
			set
			{
				this.uid_ = value;
			}
		}

		// Token: 0x0600C69C RID: 50844 RVA: 0x00217F22 File Offset: 0x00216122
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetFriendRemarkNameCsReq);
		}

		// Token: 0x0600C69D RID: 50845 RVA: 0x00217F30 File Offset: 0x00216130
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetFriendRemarkNameCsReq other)
		{
			return other != null && (other == this || (this.Reason == other.Reason && !(this.RemarkName != other.RemarkName) && this.Uid == other.Uid && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C69E RID: 50846 RVA: 0x00217F90 File Offset: 0x00216190
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Reason != 0U)
			{
				num ^= this.Reason.GetHashCode();
			}
			if (this.RemarkName.Length != 0)
			{
				num ^= this.RemarkName.GetHashCode();
			}
			if (this.Uid != 0U)
			{
				num ^= this.Uid.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C69F RID: 50847 RVA: 0x00218003 File Offset: 0x00216203
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C6A0 RID: 50848 RVA: 0x0021800B File Offset: 0x0021620B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C6A1 RID: 50849 RVA: 0x00218014 File Offset: 0x00216214
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Reason != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Reason);
			}
			if (this.RemarkName.Length != 0)
			{
				output.WriteRawTag(50);
				output.WriteString(this.RemarkName);
			}
			if (this.Uid != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Uid);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C6A2 RID: 50850 RVA: 0x00218090 File Offset: 0x00216290
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Reason != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Reason);
			}
			if (this.RemarkName.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.RemarkName);
			}
			if (this.Uid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Uid);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C6A3 RID: 50851 RVA: 0x00218104 File Offset: 0x00216304
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetFriendRemarkNameCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Reason != 0U)
			{
				this.Reason = other.Reason;
			}
			if (other.RemarkName.Length != 0)
			{
				this.RemarkName = other.RemarkName;
			}
			if (other.Uid != 0U)
			{
				this.Uid = other.Uid;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C6A4 RID: 50852 RVA: 0x0021816D File Offset: 0x0021636D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C6A5 RID: 50853 RVA: 0x00218178 File Offset: 0x00216378
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 50U)
					{
						if (num != 112U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Uid = input.ReadUInt32();
						}
					}
					else
					{
						this.RemarkName = input.ReadString();
					}
				}
				else
				{
					this.Reason = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004FE1 RID: 20449
		private static readonly MessageParser<SetFriendRemarkNameCsReq> _parser = new MessageParser<SetFriendRemarkNameCsReq>(() => new SetFriendRemarkNameCsReq());

		// Token: 0x04004FE2 RID: 20450
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004FE3 RID: 20451
		public const int ReasonFieldNumber = 4;

		// Token: 0x04004FE4 RID: 20452
		private uint reason_;

		// Token: 0x04004FE5 RID: 20453
		public const int RemarkNameFieldNumber = 6;

		// Token: 0x04004FE6 RID: 20454
		private string remarkName_ = "";

		// Token: 0x04004FE7 RID: 20455
		public const int UidFieldNumber = 14;

		// Token: 0x04004FE8 RID: 20456
		private uint uid_;
	}
}
